


class MessageTask : public nsIRunnable
{
public:
	NS_DECL_ISUPPORTS;

	MessageTask(nsAutoString& title, nsAutoString& message, nsCOMPtr<nsIMessagePipe> messagePipe);
	MessageTask(const PRUnichar* title, const PRUnichar* message, nsCOMPtr<nsIMessagePipe> messagePipe);
	virtual ~MessageTask();

	NS_IMETHOD Run();

protected:
	
	nsCOMPtr<nsIMessagePipe> m_messagePipe;
	nsAutoString m_title;
	nsAutoString m_message;
};
